package utilx

func InArray(num int, array []int) bool {

	for _, value := range array {
		if num == value {
			return true
		}
	}
	return false
}

func InStrArray(str string, strs []string) bool {

	for _, value := range strs {
		if str == value {
			return true
		}
	}
	return false
}
